package com.future.taskdemo.k8s.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dongwei-Chen
 * @Date 2023/12/3 10:46
 * @Description 
 */
@RestController
@RequestMapping("/hub")
@Slf4j
public class CityController {
    
    @Value("${hub.example.password}")
    private String cusPassword;
    
    @GetMapping("/load01")
    public Object load01() {
        log.info("测试开始...");
        log.info("从yml文件中获取hub.example.password=" + cusPassword);
        log.info("测试结束...");
        return "执行成功";
    }
}